﻿@model Irandeb4.Models.Company

@{
    ViewBag.Title = "Delete";
}

<h2>Cambiar Estado Proveedor</h2>

<fieldset>
    <legend>Datos</legend>
        <fieldset>
        <legend>Empresa</legend>
            <table> 
                <tr>
                    <td class="display-label"><b>Nit: </b></td>
                    <td class="display-field">
                        @Html.DisplayFor(model => model.Nit)
                    </td>
                </tr>
                <tr>
                    <td class="display-label"><b>Nombre: </b></td>
                    <td class="display-field">
                        @Html.DisplayFor(model => model.Name)
                    </td>
                </tr>
                <tr>
                    <td class="display-label"><b>Email: </b></td>
                    <td class="display-field">
                        @Html.DisplayFor(model => model.Email)
                    </td>
                </tr>
                <tr>
                    <td class="display-label"><b>Telefono: </b></td>
                    <td class="display-field">
                        @Html.DisplayFor(model => model.Phone)
                    </td>
                </tr>
                <tr>
                    <td class="display-label"><b>Fax: </b></td>
                    <td class="display-field">
                        @Html.DisplayFor(model => model.Fax)
                    </td>
                </tr>
                <tr>
                    <td class="display-label"><b>Direccion: </b></td>
                    <td class="display-field">
                        @Html.DisplayFor(model => model.Address)
                    </td>
                </tr>
                <tr>
                    <td class="display-label"><b>Ciudad: </b></td>
                    <td class="display-field">
                        @Html.DisplayFor(model => model.City.Name)
                    </td>
                </tr>
            </table>     
    </fieldset>
    <br/>

    @Html.DisplayFor(model => model.Employee)

 


@using (Html.BeginForm()) {
    <fieldset>
    <legend>Estado</legend>
        <center>
        <table>
            <tr>
                <td><b>Estado Actual: </b></td>
                <td>
                    <table>
                        <tr>
                            <td>Activa @Html.RadioButtonFor(model => model.Active,"true")</td>
                            <td>Inactiva @Html.RadioButtonFor(model => model.Active, "false")</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        </center>
    </fieldset>
    <div align="right">
        @Html.ActionLink("volver", "Search")
        <input type="submit" value="Cambiar Estado" /> 
        
    </div>
}
</fieldset>
